function unselectall(form)
{
    if(form.chkAll.checked){
	form.chkAll.checked = form.chkAll.checked&0;
    } 	
}

function Delall(form)
{
	
	//form.Action.value="Del"
	//document.getElementById("Action");
	//form.submit();
    document.getElementById("action").value="del";
	form.submit();
   	
}

function Lockall(form)
{
	
	//form.Action.value="Del"
	//document.getElementById("Action");
	//form.submit();
    document.getElementById("action").value="lock";
	form.submit();
   	
}
function Unlockall(form)
{
	
	//form.Action.value="Del"
	//document.getElementById("Action");
	//form.submit();
    document.getElementById("action").value="unlock";
	form.submit();
   	
}



function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll"&&e.disabled==false)
       e.checked = form.chkAll.checked;
    }
  }
  
  function ConfirmDel()
{alert('1');
		
		if(confirm("确定要执行选定的操作吗？"))
		    return true;
		else
			return false;
	
}
